define(['app'], function( app ) {
    'use strict';

    app.filter('filterResultpk', function() {
      var state;
      return function(input) {
        switch (input) {
          case "0":
            state = "未处理";
            break;
          case "1":
            state = "正方成功";
            break;
          case "2":
            state = "反方成功";
            break;
          case "3":
            state = "都成功";
            break;
          case "4":
            state = "都失败";
            break;
          default:
            break;
        }
        return state;
      }
    });
    
    app.filter('filterJinxing', function() {
      var state;
      return function(input) {
        switch (input) {
          case 1:
            state = "进行中";
            break;
          case 2:
            state = "已经开始";
            break;
          case 3:
            state = "未开始";
            break;
          case 4:
            state = "未开始";
            break;
          default:
            break;
        }
        return state;
      }
    });

     
});